/*************************************************************************
	> File Name: AwinicAPI.h
	> Author: 
	> Mail: 
	> Created Time: 2018/1/25 Fri 10:32
	> Version     :
 ************************************************************************/

#ifndef _AWINICLOG_H
#define _AWINICLOG_H
#include <stdio.h>

#define HISI_PLATFORM (0)
#if HISI_PLATFORM
#define AWLOGE(format,...)  \
	do{ \
       printf("[%s:%d] %s:[ERROR]" format " \n",__FILE__,__LINE__,__func__,##__VA_ARGS__); \
    }while(0)

#define AWLOGD(format,...)  \
	do{ \
       printf("[%s:%d] %s:[INFO]" format " \n",__FILE__,__LINE__,__func__,##__VA_ARGS__); \
    }while(0)
#endif

#define QCOM_PLATFORM (0)
#if QCOM_PLATFORM
#ifndef _DEBUG  // To enable FARF messages
#define _DEBUG
#endif
#include "capi_v2_awinic_mec.h"
#include <assert.h>
#include <hexagon_protos.h>
#include <assert.h>
#include <hexagon_protos.h>
#define AWLOGE(format,...)  \
	do{ \
       FARF(ERROR,"[%s:%d] %s:[ERROR]" format " \n",__FILE__,__LINE__,__func__,##__VA_ARGS__); \
    }while(0)

#define AWLOGD(format,...)  \
	do{ \
       FARF(HIGH,"[%s:%d] %s:[INFO]" format " \n",__FILE__,__LINE__,__func__,##__VA_ARGS__); \
    }while(0)
#endif


#define UBUNTU_SYSTEM (1)
#if UBUNTU_SYSTEM
#define AWLOGE(format,...)  \
	do{ \
       printf("[%s:%d] %s:[ERROR]" format " \n",__FILE__,__LINE__,__func__,##__VA_ARGS__); \
    }while(0)

#define AWLOGD(format,...)  \
	do{ \
       printf("[%s:%d] %s:[INFO]" format " \n",__FILE__,__LINE__,__func__,##__VA_ARGS__); \
    }while(0)
#endif

#define ANDROID_SYSTEM (0)
#if ANDROID_SYSTEM
#define AWLOGE(format,...)  \
	do{ \
       ALOGE("[%s:%d] %s:[ERROR]" format " \n",__FILE__,__LINE__,__func__,##__VA_ARGS__); \
    }while(0)

#define AWLOGD(format,...)  \
	do{ \
       ALOGD("[%s:%d] %s:[INFO]" format " \n",__FILE__,__LINE__,__func__,##__VA_ARGS__); \
    }while(0)
#endif


#endif
